//
//  MBDMineAvatarCellModel.swift
//  MasterBoy
//
//  Created by kyson on 2024/10/12.
//

import Foundation


class MBDMineAvatarCellModel : MBDMineCommonCellModel {
    
    var avatar : String! {
        get {
            var urlPath = MBDAccountInfoModel.current()?.avatarUrl
            guard let avatar = urlPath else {
                return MBDPath2URLUtils.filePathPrefix.appending("AppIcon")
            }
            
            if avatar.isBlank == true {
                var avatarURL = MBDPath2URLUtils.filePathPrefix.appending("AppIcon")
                return avatarURL
            } else {
                let avatarURL = MBDPath2URLUtils.wrapAvatarURL(path: avatar)
                return avatarURL
            }

        }
    }
    
    override func cellHeight() -> CGFloat {
        return 100
    }
    

}
